package vnreal.ZNEW.Xml;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

public class Demand {

	private static Logger LOG = Logger.getLogger(Demand.class);
	private String type;
	private Parameter Parameter;
	private List<Mapping> Mapping;

	public Demand() {
		this.Mapping = new ArrayList<Mapping>();
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Parameter getParameter() {
		return this.Parameter;
	}

	public void setParameter(Parameter parameter) {
		this.Parameter = parameter;
	}

	public List<Mapping> getMapping() {
		return this.Mapping;
	}

	public void setMapping(Mapping mapping) {
		LOG.debug("setMapping------>mapping.getytp " + mapping.getResourceType());
		LOG.debug("setMapping------>mapping.getssubent " + mapping.getSubstrateEntity());
		LOG.debug("setMapping------>mapping" + mapping);
		this.Mapping.add(mapping);

	}
}
